export interface Route {
  name: string,
  path: string,
  page?: string,
  children?: Array<Route>,
  meta?: any,
  redirect?: string,
};

const routes: Array<Route> = [{
  name: 'Default',
  path: '/',
  redirect: '/Login'
}, {
  name: 'Login',
  path: '/Login',
  page: 'login/Login'
}, {
  name: 'App',
  path: '/App',
  page: 'Home',
  children: [{
    name: 'Home',
    path: 'Home',
    page: 'main/Main',
  }, {
    name: 'Missions',
    path: 'Missions',
    page: 'missions/Missions',
  }, {
    name: 'MyMissions',
    path: 'MyMissions',
    page: 'mymissions/MyMissions',
  }, {
    name: 'Me',
    path: 'Me',
    page: 'me/Me',
  }, ]
}, {
  name: 'Sub',
  path: '/Sub',
  page: 'SubPage',
  children: [{
    name: 'Register',
    path: '/Register',
    page: 'login/Register',
  }, {
    name: 'Invite',
    path: 'Invite',
    page: 'me/income/Invite',
  }, {
    name: 'MissionDetail',
    path: 'MissionDetail',
    page: 'missions/MissionDetail',
  }, {
    name: 'Income',
    path: 'Income',
    page: 'me/income/Income',
  }, {
    name: 'Members',
    path: 'Members',
    page: 'me/income/members/Members',
  }, {
    name: 'MembersList',
    path: 'MembersList',
    page: 'me/income/members/MembersList',
  }, {
    name: 'Profits',
    path: 'Profits',
    page: 'me/income/members/Profits',
  }, {
    name: 'BillDetail',
    path: 'BillDetail',
    page: 'me/income/trading/BillDetail',
  }, {
    name: 'MemberProfits',
    path: 'MemberProfits',
    page: 'me/income/trading/MemberProfits',
  }, {
    name: 'Trading',
    path: 'Trading',
    page: 'me/income/trading/Trading',
  }, {
    name: 'Withdraw',
    path: 'Withdraw',
    page: 'me/income/withdraw/Withdraw',
  }, {
    name: 'WithdrawDetail',
    path: 'WithdrawDetail',
    page: 'me/income/withdraw/WithdrawDetail',
  }, {
    name: 'WithdrawList',
    path: 'WithdrawList',
    page: 'me/income/withdraw/WithdrawList',
  }, {
    name: 'Cards',
    path: 'Cards',
    page: 'me/income/bank/Cards',
  }, {
    name: 'AddCard',
    path: 'AddCard',
    page: 'me/income/bank/AddCard',
  }, {
    name: 'MyProfile',
    path: 'MyProfile',
    page: 'me/MyProfile',
  }, ]
}];


export default routes;